package day10.practice;

/**
 * @Author juzipi
 * @Date 2021/6/24 10:30
 * @Info
 */
public class BoyGirlTest {

    public static void main(String[] args) {

        Boy boy = new Boy("张三",20);
        boy.shout();
        Girl girl = new Girl("余秀丽",20);
        girl.marry(boy);
        Girl girl1 = new Girl("紧",17);
        int compare = girl.compare(girl1);
        if (compare>0){
            System.out.println(girl.getName()+"大");
        }else if (compare < 0){
            System.out.println(girl1.getName()+"大");
        }else {
            System.out.println("一样大");
        }

    }

}
